
package com.zjff.myshop.admin.service;

import com.zjff.myshop.admin.pojo.vo.OrderVO;
import com.zjff.myshop.admin.pojo.vo.SumByCategoryVO;
import com.zjff.myshop.admin.pojo.vo.SumByMonthVO;
import com.zjff.myshop.front.pojo.form.OrderInsertForm;
import com.zjff.myshop.front.pojo.vo.OrderDetailVO;
import com.zjff.myshop.entity.Order;
import com.zjff.myshop.util.PageList;
import com.zjff.myshop.util.PageQuery;

import java.util.List;
import java.util.Map;

public interface OrderService {
    /**
     * 增加订单
     */
    Integer insert(OrderInsertForm form);

    /**
     * 更改订单信息
     */
    Boolean update(Order order);

    /**
     * 更改订单状态(0待支付/1已支付/2已发货/3交易成功/-1已取消)
     */
    Boolean updateStatus(Integer orderId, Byte status);

    /**
     * 查询订单详情
     */
    OrderDetailVO selectDetailById(Integer orderId);

    /**
     * 查询订单分页
     */
    PageList<OrderVO> selectPage(PageQuery pageUtil);

    List<OrderDetailVO> selectDetailVOList(Map<String, Object> map);

    List<SumByCategoryVO> queryOrderSumByCategory(String dtBgn, String dtEnd);

    List<SumByMonthVO> queryOrderSumByMonth(Integer year);


}
